package com.nf.entity;

import com.nf.test.打印机;
import com.nf.test.联想打印机工厂;
import org.junit.jupiter.api.Test;

public class Teacher2 {

    private 打印机 printer;

    @Test
    void 放假(){
        printer = new 联想打印机工厂().getBean("7206W");
        //System.out.println(printer);
        printer.打印("出门玩的计划表");
    }
}
